package com.zjinyin.forum.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Article {
    private Long id;


    @ApiModelProperty("关联版块编号")
    private Long boardId;

    @ApiModelProperty("发帖人,关联用户编号")
    private Long userId;

    @ApiModelProperty("帖子标题")
    private String title;

    @ApiModelProperty("帖子访问量")
    private Integer visitCount;

    @ApiModelProperty("帖子回复量")
    private Integer replyCount;

    @ApiModelProperty("帖子点赞数")
    private Integer likeCount;

    @ApiModelProperty("帖子状态")
    private Byte state;

    private Byte deleteState;

    @ApiModelProperty("帖子创建时间")
    private Date createTime;

    @ApiModelProperty("帖子更新时间")
    private Date updateTime;

    @ApiModelProperty("帖子正文")
    private String content;

    @ApiModelProperty("关联用户对象")
    private User user;

    @ApiModelProperty("关联版块对象")
    private Board board;

    @ApiModelProperty("是否为帖子作者")
    private Boolean own;
}